<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01 number属性和方法</title>
</head>

<body>


    <script>
        // console.log('number max:', Number.MAX_VALUE);
        // console.log('number MIN:', Number.MAX_VALUE);

        /* var num = 20.525;
        var num1 = 20.5251;
        console.log('num:', num.toFixed(2));
        console.log('num1:', num1.toFixed(2)); */

        //四舍六入五成双
        var num = 99.56;
        console.log(num.toFixed(1));

        var c = 12;
        var b = c.toString(2);
        console.log('b:', b);
    </script>
</body>

</html>